package com.yomahub.liteflow.example.component.my;

import com.yomahub.liteflow.core.NodeSwitchComponent;
import org.springframework.stereotype.Component;

/**
 * 初始化参数检查组件
 */
@Component("A")
public class ACmp extends NodeSwitchComponent {

    @Override
    public String processSwitch() {
        //拿到请求参数
        Integer req = this.getRequestData();
        int ys = req % 2;
        System.out.println("----------------------");
        System.out.println(ys);
        if (ys == 0){
            return "B";
        }else {
            return "C";
        }
    }
}
